package com.yhn.bubblevideo.user.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author yhn
 * @version 1.0
 * @description
 * @date 2024/12/17 15:43
 */
@Component
@RocketMQMessageListener(consumerGroup = "bubble-video_pg", topic = "bubble-video_topic")
public class SpringConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println("Recieve message:" + s);
    }
}
